

#include "MainWindowCommands.hpp" 

#include "../OLWidgets/VtkWidget.hpp"
#include "../OLWidgets/CentralWidget.hpp"
#include "../OLWidgets/CentralTabWidget.hpp"

#include "../OLApp/CommandsManager.hpp"
#include "../OLApp/WidgetsManager.hpp"
#include "../OLApp/defines.hpp"


namespace NSCommands {

	void SaveDataCommand::execute() { 
		const auto& _central_tab_widget = myWidget(CentralTabWidget);
		int index = _central_tab_widget->currentIndex();
		QString name = _central_tab_widget->tabText(index);
		_central_tab_widget->setTabText(index, name.remove('*'));
	}

	void SaveDataCommand::undo() {
		/*non-undo*/
	}

}